package com.icloud.cer.rest.msg.bean;

import java.net.InetSocketAddress;

public class ClientView {
	private String encryptorId;
	private String encryptorName;
	private String ip;
	private int port;
	private int status;
	
	private InetSocketAddress inetSocketAddr;
	
	public String getEncryptorId() {
		return encryptorId;
	}
	public void setEncryptorId(String encryptorId) {
		this.encryptorId = encryptorId;
	}
	public String getEncryptorName() {
		return encryptorName;
	}
	public void setEncryptorName(String encryptorName) {
		this.encryptorName = encryptorName;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public InetSocketAddress getInetSocketAddr() {
		return inetSocketAddr;
	}
	public void setInetSocketAddr(InetSocketAddress inetSocketAddr) {
		this.inetSocketAddr = inetSocketAddr;
	}
	
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("id:").append(encryptorId).append(",");
		sb.append("name:").append(encryptorName).append(",");
		sb.append("status:" + status);
		sb.append("inetSocketAddr:").append(inetSocketAddr).append("");
		return sb.toString();
	}
}
